package com.atguigu.gmall.feign.item;


import com.atguigu.gmall.common.result.Result;
import com.atguigu.gmall.item.to.SkuDetailTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;


@RequestMapping("/api/inner/item")
@FeignClient("service-item")
public interface SkuItemDetailFeignClient {

//    weball中的skuid传到 service-item中
//    远程调用service中的方法
    @GetMapping("/detail/{skuId}")
    Result<SkuDetailTO> getSkuDetail(@PathVariable("skuId") Long skuId);
}
